<!--
HTML片段，嵌入弹窗中使用
注：在需要使用id的地方，请取st_jsid参数<?php echo $_GET['st_jsid']; ?>做前缀，避免影响到主页面
-->
<!--添加角色-->
<form action="{%:U('/admin/admin/saveadmin')%}" onsubmit="return false" stverify="true" erroappend="true" ajaxpost="true" method="POST">
  <table class="table table-listing">
    <tbody>
    <tr>
      <td class="span4"><span class="text-red">*</span>登陆名称：</td>
      <td>
          <input class="input" type="text" name="username" opt="rq" value="{%$adminInfo['username']%}"/>
          <input class="input" type="text" name="id" hidden='true' value="{%$adminInfo['id']%}"/>
          <input class="input" type="text" name="oldname" hidden='true' value="{%$adminInfo['username']%}"/>
      </td>
    </tr>
    <tr>
      <td class="span4"><span class="text-red">*</span>真实姓名：</td>
      <td>
        <input class="input" type="text" name="realname" opt="rq" value="{%$adminInfo['realname']%}"/>
      </td>
    </tr>
    <tr>
      <td class="span4"><span class="text-red">*</span>选择用户组：</td>
      <td>                  
          <select class="st-dropdown" name="group_id" data-config="inBox:true">
            <option value="0">--请选择--</option>
            {%notempty name="groupList"%}
             {%foreach name="groupList" item="vo"%}            
             <option value="{%$vo.id%}"
                     {%if condition="$adminInfo['group_id'] eq $vo['id'] "%} selected{%/if%}>{%$vo.name%}</option>
             {%/foreach%}
            {%/notempty%}
          </select>
      </td>
    </tr>
    <tr>
      <td class="span4">用户简介：</td>
      <td>
        <textarea name="content" opt="nrq ml" ml="0-50" rows="3" cols="30">{%$adminInfo['content']%}</textarea>
      </td>
    </tr>
    <tr>
      <td class="span4">用户状态：</td>    
      <td><input type="radio" name="dostatus" value="1" 
                 {%if condition="$adminInfo['dostatus'] eq 1 "%} checked="checked"{%/if%}>启用&nbsp;&nbsp;&nbsp;
          <input type="radio" name="dostatus" value="0"
                {%if condition="$adminInfo['dostatus'] eq 0 "%} checked="checked"{%/if%}>停用</td>
    </tr>
    </tbody>
  </table>
</form>
